package com.haoran.grope.server;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQServer {
	@RabbitListener(queues = "rpc.queue")
	public void receive(String message) {
		System.out.println("--------receive1 ------- " + message);
	}
	
	@RabbitListener(queues = "rpc.queue2")
	public void receive2(String message) {
		System.out.println("--------receive2 ------- " + message);
	}
	
	
	@RabbitListener(queues = "rpc.queue3")
	public void receive3(String message) {
		System.out.println("--------receive3 ------- " + message);
	}
	
	
	 
}
